-module(cfg_monster).
-export([
get/1,
all/0
])
get(1) ->#cfg_monster{id=1,name="山猪",fightMonster=[1,2,3],fightP=[1,5,3]};
get(2) ->#cfg_monster{id=2,name="山猪队长",fightMonster=[1,1,1,1,2,3],fightP=[1,2,3,4,5,6]};
get(3) ->#cfg_monster{id=3,name="山猪头领",fightMonster=[1,2,1,3,3,3],fightP=[1,2,3,4,5,6]};
get(_) -> null.
all() ->
[#cfg_monster{id=1,name="山猪",fightMonster=[1,2,3],fightP=[1,5,3]},#cfg_monster{id=2,name="山猪队长",fightMonster=[1,1,1,1,2,3],fightP=[1,2,3,4,5,6]},#cfg_monster{id=3,name="山猪头领",fightMonster=[1,2,1,3,3,3],fightP=[1,2,3,4,5,6]}].